home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS065.dsk
/
BILLS.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
3KB
|
93 lines
10 REM MON GOES HERE
100 HOME : PRINT "INSERT PFILE DISK AND HIT RETURN"
101 INPUT X$
102 NN = 450
105 DIM P$(NN)
110 Z$ = "<CTRL-D>"
115 PRINT Z$;"CATALOG": HOME
120 PRINT Z$;"OPEN PFILE"
130 PRINT Z$;"READ PFILE"
140 FOR E = 0 TO NN
150 INPUT P$(E)
160 NEXT E
170 PRINT Z$;"CLOSE PFILE"
200 REM INPUT OF INFO
201 HOME
210 INPUT "WHAT IS THE COMPANY ACCOUNT # ";A$
220 INPUT "WHAT IS THE COMPANY NAME ";N$
230 PRINT "INVOICE # ": INPUT I$
235 PRINT "ENTER DATE IN THE FORM MONTH/DAY/YR": PRINT " E.G 1/17/80"
236 INPUT D$
240 M$ = LEFT$(D$,2)
241 IF MID$ (D$,2,1) = "/" THEN M$ = "0" + LEFT$(D$,1)
242 DY$ = MID$ (D$,3,1): IF DY$ = "/" THEN DY$ = MID$ (D$,4,1): GOTO 245
243 DA$ = MID$ (D$,4,1): IF DA$ = "/" THEN DY$ = "0" +DY$:DA$ = "": GOTO 246
244 IF DA$ < >"/" THEN 246
245 DA$ = MID$ (D$,5,1): IF DA$ = "/" THEN DY$ = "0" +DY$: GOTO 248
246 DY$ = DY$ +DA$
248 YR$ = RIGHT$(D$,2)
249 D$ = M$ +"/" +DY$ +"/" +YR$
260 PRINT "ENTER AMOUNT": PRINT "CREDITS ARE ENTERED AS NEGATIVE": INPUT "$";AM$
265 INPUT "ANY COMMENTS-";C$
270 HOME : PRINT "THIS IS TO CHECK YOUR INPUT"
271 PRINT "ACCOUNT #";A$: PRINT "COMPANY ";N$: PRINT "INVOICE #";I$: PRINT "DATE ";D$: PRINT "AMOUNT $";AM$: PRINT "COMMENTS-";C$
280 PRINT "IF THIS INFORMATION IS CORRECT "
281 PRINT " HIT RETURN"
282 PRINT "IF THERE ARE CHANGES OR CORRECTICB$ = V$
614 TB = TB +CB +NB +SB:V = TB: GOSUB 6000:T$ = V$
615 TB = 0:CB = 0:NB = 0:SB = 0
616 PRINT N$: PRINT A$; TAB( 10);" $";NB$;" $";SB$;
617 PRINT " $";TB$;" $";CB$;" $";T$
618 NEXT A
620 PR# 0
622 HOME
624 FOR X = 1 TO 10: PRINT CHR$(7): NEXT
680 PRINT "END OF PROGRAM THANK YOU": GOTO 999
1000 REM PRINT FOR 90&OVER
1010 IF NT = VAL( MID$ (P$(E),71<CTRL-A>N$ = N$ +" ": GOTO 440
460 P$(E) = P$(E) +N$
470 REM INVOICE
471 IF LEN(I$) = 9 THEN 475
472 I$ = " " +I$: GOTO 471
475 P$(E) = P$(E) +I$
480 REM AMOUNT
481 IF LEN(AM$) = 10 THEN 485
482 AM$ = " " +AM$: GOTO 481
485 P$(E) = P$(E) +AM$
490 REM COMMENTS
491 IF LEN(C$) >15 THEN C$ = LEFT$(C$,15)
492 IF LEN(C$) = 15 THEN 495
493 C$ = C$ +" ": GOTO 492
495 P$(E) = P$(E) +C$
496 P$(E) = P$(E) +D$
500 REM ALL DATA IN
505 HOME
510 PRINT "TYPE IN A 'Y' IF THERE IS ANOTHER ": PRINT "ENTRY FOR ";N$
511 PRINT "OTHERWISE HIT RETURN"
520 INPUT X$
521 IF X$ = "Y" THEN D$ = "":I$ = "":AM$ = "":C$ = "": HOME : PRINT A$: PRINT N$: GOTO 230
530 HOME : PRINT "ARE THERE ANY MORE ENTRY'S FOR THE": PRINT " JOURNAL (Y/N) ": INPUT X$
531 IF X$ = "N" THEN 900
532 GOTO 200
900 REM WRITE TO DISK TWICE
905 PRINT Z$;"CATALOG"
910 HOME
920 PRINT Z$;"OPEN PFILE"
930 PRINT Z$;"WRITE PFILE"
940 FOR E = 0 TO NN
950 PRINT P$(E)
960 NEXT E
970 PRINT Z$;"CLOSE PFILE"
980 PRINT "INSERT BACKUP DISK"
985 PRINT " AND HIT RETURN WHEN READY"
989 INPUT X$
990 PRINT Z$;"CATALOG"
991 PRINT Z$;"OPEN PFILE"
992 PRINT Z$;"WRITE PFILE"
993 FOR E = 0 TO NN
994 PRINT P$(E)
995 NEXT E
996 PRINT Z$;"CLOSE PFILE"
997 PRINT "END OF DISK WRITE ROUTINE"
998 PRINT "THANK YOU"
999 END